Release 10.1A: OpenEdge Development:
ADM and SmartObjects


Instantiation

At run time, the top-level application procedure (a SmartContainer; typically, a SmartWindow) instantiates the other SmartObjects it contains. Instantiation has several steps, during which the top-level SmartContainer does the following:

  1. Runs the master for each SmartObject persistently to create an instance of that SmartObject.
  2. Sets instance properties in each SmartObject and sets the position of each SmartObject relative to the SmartContainer.
  3. Tells the SmartObject how it relates to the other objects in the SmartContainer.
  4. Instructs the SmartObject to initialize and display itself. This is done in the generated procedure adm-create-objects.

The SmartContainer does not directly dictate the contents of SmartObjects when it tells them to initialize themselves. Each SmartObject responds differently to this request according to its type. The SmartContainer does not need to be aware of this; it sends exactly the same request to all SmartObjects and allows them to handle the details themselves.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095